import Vue from 'vue'
import Router from 'vue-router'

import axios from '../../http'

Vue.use(Router)

const routes = [
   
    // 首页城市列表
     {
         name: 'ready',
        path: '/ready',
    //     meta: {
    //         requireAuth: true,  // 添加该字段，表示进入这个路由是需要登录的
    //       },
    //     //component: Home
    },
    
]
const router = new Router({
        mode: 'history',
        base: process.env.BASE_URL,
        routes,

    });
router.beforeEach((to, from, next) => {
    const hasToken = localStorage.token ? true : false;
    
    
    next();
    
    //next()
})


export default router
